package userCollenter.dao1;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import userCollenter.pojo.User;

/*@FeignClient("User-Service")*/

/**
 * Feigen
 */
@FeignClient(value = "user-service", fallback = UserFeignClientFeign.class)//value="调用服务名称"fallback="回显方法名称"
public interface UserFeignClient {
    @GetMapping("/user/{id}")
    User queryUserById(@PathVariable("id") String id);
}
